The NQueens sample implements multiple solutions to solve an n-queens problem. The NQueens sample for Intel® VTune™ Amplfier contains the following solutions that can be used independently:

Build Instructions for C# Samples

  1. Open the Visual Studio* IDE and choose File > Open > Project/Solution from the menu.

  2. In the Open Project dialog box, choose the parallel_nqueens_csharp.sln or serial_nqueens_csharp.sln file.

  3. Right-click the project in the Solution Explorer and choose Properties to display the Property Pages dialog box.

  4. Choose Release or Active (Release) in the Configuration drop-down list.

  5. Press F7 or choose Build > Build Solution from the menu to build the project.

To use the sample with the VTune Amplifier, make sure to provide an integer value between 4 and 13 as the Application parameters. If you do not provide a value, the sample application uses the default value of 13.

Build Instructions for the Fortran Sample

  1. Open the Visual Studio* IDE and choose File > Open > Project/Solution from the menu.

  2. In the Open Project dialog box, choose the nqueens_fortran.sln.

    The solution includes two projects with a single-threaded and multithreaded version of the sample application. If you plan to use the tutorial with the sample, set up the nqueens_parallel as a startup project.

  3. Right-click the project in the Solution Explorer and choose Properties to display the Property Pages dialog box.

  4. Choose Release or Active (Release) in the Configuration drop-down list.

  5. Press F7 or choose Build > Build Solution from the menu to build the project.

Note:

Detailed build instructions are available in the tutorial listed below.

To use the sample with the VTune Amplifier, make sure to provide an integer value between 4 and 15 as the Application parameters. To follow the tutorial workflow, use the value of 15.

System Requirements

Related Tutorials

The NQueens sample for the VTune Amplifier is accompanied by the following tutorials:

Legal Information

Intel, the Intel logo, VTune and Xeon Phi are trademarks of Intel Corporation in the U.S. and/or other countries.

*Other names and brands may be claimed as the property of others.

Microsoft, Windows, and the Windows logo are trademarks, or registered trademarks of Microsoft Corporation in the United States and/or other countries.

OpenCL and the OpenCL logo are trademarks of Apple Inc. used by permission from Khronos.

© 2017, Intel Corporation